function getContextPath() {
	return $("#requestContextPath").text();
}

function changeButtonText(button, text) {
	button.children("span.ui-btn-inner").children("span.ui-btn-text").text(text);
}

function getButtonText(button) {
	return button.children("span.ui-btn-inner").children("span.ui-btn-text").text();
}

function replaceAll(str, searchFor, replaceBy) {
	return str.replace(new RegExp(searchFor, "g"), replaceBy);
}